<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Insert Image</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript" type="text/javascript">
<!--
function AddLink() {
	var oForm = document.linkForm;
	
	//validate form
	if (oForm.url.value == '') {
		alert('Please select an image.');
		return false;
	}
	
	var html = '<img src="' + document.linkForm.url.value + '" '; 
	if ( document.linkForm.width.value ) html += ' width="' + document.linkForm.width.value + '"';
	if ( document.linkForm.height.value ) html += ' width="' + document.linkForm.height.value + '"';
	html += '/>';
	
	window.opener.insertHTML(html);
	window.close();
	return true;
}
//-->
</script>
</head>

<body style="margin: 10px; background: #D3D3D3;">

<form name="linkForm" onSubmit="return AddLink();">
<table cellpadding="4" cellspacing="0" border="0">
	<tr>
		<td align="right">Image:</td>
		<td><input name="url" type="text" id="url" size="40"></td>
	</tr>
	<tr>
		<td align="right">Width:</td>
		<td><input name="width" type="text" id="width" ></td>
	</tr>
	<tr>
		<td align="right">Height:</td>
		<td><input name="height" type="text" id="height" ></td>
	</tr>
	<tr>
		<td colspan="3" align="center">
			<input type="submit" value="Insert Image" />
			<input type="button" value="Cancel" onClick="window.close();" />
		</td>
	</tr>
</table>

</form>

</body>
</html>
